package usw.website.business;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import mvc.struts.action.Action;
import mvc.struts.form.ActionForm;
import usw.website.form.PanduanForm;
import usw.website.service.LoginVO;

public class PanduanAction implements Action {

	/**
	 * 
	 */
	@Override
	public String execute(
			HttpServletRequest 	request, 
			HttpServletResponse response, 
			ActionForm 			form,
			Map<String, String> arg3) 
	{
//		PanduanForm	panduanForm =  (PanduanForm)form;
		
//		LoginVO	loginVo = new LoginVO();
//		
//		loginVo = (LoginVO)request.getAttribute("loginVo");
//		
//		String	name 	 = loginVo.getName();
//		String	password = loginVo.getPassword();
		
		String	name = request.getParameter("name");
		String	password = request.getParameter("password");
		
		if	(name.equals("usw") && password.equals("usw12345"))
		{
			return	"success";
		}
		else
		{
			return	"failure";
		}
	}

}
